<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>    TFC-Trotri Foundation Classes &raquo; \tfc\mvc\form\ButtonElement
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            <style>
        .deprecated h2 {
            text-decoration: line-through;
        }
    </style>
    <div class="row">
        <div class="span4">
                    <div class="btn-group view pull-right" data-toggle="buttons-radio">
        <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
        <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
    </div>
    <div class="btn-group visibility" data-toggle="buttons-checkbox">
        <button class="btn public active" title="Show public elements">Public</button>
        <button class="btn protected" title="Show protected elements">Protected</button>
        <button class="btn private" title="Show private elements">Private</button>
        <button class="btn inherited active" title="Show inherited elements">Inherited</button>
    </div>

        <ul class="side-nav nav nav-list">
        <li class="nav-header">
            <i class="icon-custom icon-method"></i> Methods
            <ul>
                                                                                                    <li class="method public inherited">
        <a href="#method_fetch" title="fetch :: 获取表单HTML内容，需要通过子类重写">
            <span class="description">获取表单HTML内容，需要通过子类重写</span><pre>fetch</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getInput" title="getInput :: 获取表单元素（Input、Button、Select等）HTML内容，需要通过子类重写">
            <span class="description">获取表单元素（Input、Button、Select等）HTML内容，需要通过子类重写</span><pre>getInput</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method___construct" title="__construct :: 构造方法：初始化所有属性值">
            <span class="description">构造方法：初始化所有属性值</span><pre>__construct</pre>
        </a>
    </li>

                                                                                                                                                                <li class="method public inherited">
        <a href="#method___get" title="__get :: 魔术方法：请求get开头的方法，获取一个受保护的属性值；或者从attributes中获取表单元素属性">
            <span class="description">魔术方法：请求get开头的方法，获取一个受保护的属性值；或者从attributes中获取表单元素属性</span><pre>__get</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method___set" title="__set :: 魔术方法：请求set开头的方法，设置一个受保护的属性值；或者将表单元素属性设置到attributes中">
            <span class="description">魔术方法：请求set开头的方法，设置一个受保护的属性值；或者将表单元素属性设置到attributes中</span><pre>__set</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getType" title="getType :: 获取表单元素的类型">
            <span class="description">获取表单元素的类型</span><pre>getType</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_setType" title="setType :: 设置表单元素的类型">
            <span class="description">设置表单元素的类型</span><pre>setType</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getName" title="getName :: 获取表单元素的名称">
            <span class="description">获取表单元素的名称</span><pre>getName</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_setName" title="setName :: 设置表单元素的名称">
            <span class="description">设置表单元素的名称</span><pre>setName</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getAttributes" title="getAttributes :: 获取所有的表单元素属性">
            <span class="description">获取所有的表单元素属性</span><pre>getAttributes</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getAttribute" title="getAttribute :: 获取一个表单元素属性">
            <span class="description">获取一个表单元素属性</span><pre>getAttribute</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_setAttribute" title="setAttribute :: 设置一个表单元素属性">
            <span class="description">设置一个表单元素属性</span><pre>setAttribute</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_removeAttribute" title="removeAttribute :: 删除一个表单元素属性">
            <span class="description">删除一个表单元素属性</span><pre>removeAttribute</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_hasAttribute" title="hasAttribute :: 获取表单元素属性是否存在">
            <span class="description">获取表单元素属性是否存在</span><pre>hasAttribute</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getClass" title="getClass :: 获取表单元素样式名">
            <span class="description">获取表单元素样式名</span><pre>getClass</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_setClass" title="setClass :: 设置表单元素样式名">
            <span class="description">设置表单元素样式名</span><pre>setClass</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getReadonly" title="getReadonly :: 获取表单元素是否只读">
            <span class="description">获取表单元素是否只读</span><pre>getReadonly</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_setReadonly" title="setReadonly :: 设置表单元素是否只读">
            <span class="description">设置表单元素是否只读</span><pre>setReadonly</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getDisabled" title="getDisabled :: 获取表单元素是否禁用">
            <span class="description">获取表单元素是否禁用</span><pre>getDisabled</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_setDisabled" title="setDisabled :: 设置表单元素是否禁用">
            <span class="description">设置表单元素是否禁用</span><pre>setDisabled</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_getHtml" title="getHtml :: 获取页面辅助类">
            <span class="description">获取页面辅助类</span><pre>getHtml</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method___toString" title="__toString :: 魔术方法：获取表单HTML内容">
            <span class="description">魔术方法：获取表单HTML内容</span><pre>__toString</pre>
        </a>
    </li>

                                                                                                        <li class="method public inherited">
        <a href="#method_display" title="display :: 输出表单HTML内容">
            <span class="description">输出表单HTML内容</span><pre>display</pre>
        </a>
    </li>

                                                </ul>
        </li>
        <li class="nav-header protected">» Protected
            <ul>
                                                                                                                                                                                        <li class="method protected inherited">
                            <a href="#method__init" title="_init :: 子类构造方法：子类调用此方法作为构造方法，避免重写父类构造方法">
                                <span class="description">子类构造方法：子类调用此方法作为构造方法，避免重写父类构造方法</span><pre>_init</pre>
                            </a>
                        </li>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </ul>
        </li>
        <li class="nav-header private">» Private
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </ul>
        </li>
        <li class="nav-header">
            <i class="icon-custom icon-constant"></i> Constants
            <ul>
                            </ul>
        </li>
    </ul>


        </div>

        <div class="span8">
            <div class="element class">
                <h1>ButtonElement</h1>
                <small style="display: block; text-align: right">
                                            Extends <a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a>
                                                        </small>
                <p class="short_description">ButtonElement class file
按钮类表单元素</p>
                <div class="details">
                    <div class="long_description">
                        
                    </div>
                    <table class="table table-bordered">
                                                                                    <tr>
                                    <th>
                                        author
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>宋欢 <a href="mailto:trotri@yeah.net">trotri@yeah.net</a></p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        version
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>$Id: ButtonElement.php 1 2013-03-29 16:48:06Z huan.song $</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        package
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>tfc.mvc.form</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        since
                                                                            </th>
                                    <td>
                                                                                    1.0
                                                                                
                                    </td>
                                </tr>
                                                                                                                                                                                                                                    </table>

                    <h3><i class="icon-custom icon-method"></i> Methods</h3>
                                                                <a id="method_fetch"></a>
                        <div class="element clickable method public  method_fetch inherited" data-toggle="collapse" data-target=".method_fetch .collapse">
                            <h2>获取表单HTML内容，需要通过子类重写</h2>
                            <pre>fetch() : string</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                <span class="label">abstract</span>                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getInput"></a>
                        <div class="element clickable method public  method_getInput inherited" data-toggle="collapse" data-target=".method_getInput .collapse">
                            <h2>获取表单元素（Input、Button、Select等）HTML内容，需要通过子类重写</h2>
                            <pre>getInput() : string</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                <span class="label">abstract</span>                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method___construct"></a>
                        <div class="element clickable method public  method___construct inherited" data-toggle="collapse" data-target=".method___construct .collapse">
                            <h2>构造方法：初始化所有属性值</h2>
                            <pre>__construct(array $config = array()) </pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$config</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method__init"></a>
                        <div class="element clickable method protected  method__init inherited" data-toggle="collapse" data-target=".method__init .collapse">
                            <h2>子类构造方法：子类调用此方法作为构造方法，避免重写父类构造方法</h2>
                            <pre>_init() </pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method___get"></a>
                        <div class="element clickable method public  method___get inherited" data-toggle="collapse" data-target=".method___get .collapse">
                            <h2>魔术方法：请求get开头的方法，获取一个受保护的属性值；或者从attributes中获取表单元素属性</h2>
                            <pre>__get(string $name) : mixed</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$name</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method___set"></a>
                        <div class="element clickable method public  method___set inherited" data-toggle="collapse" data-target=".method___set .collapse">
                            <h2>魔术方法：请求set开头的方法，设置一个受保护的属性值；或者将表单元素属性设置到attributes中</h2>
                            <pre>__set(string $name, mixed $value) : void</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$name</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                            
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getType"></a>
                        <div class="element clickable method public  method_getType inherited" data-toggle="collapse" data-target=".method_getType .collapse">
                            <h2>获取表单元素的类型</h2>
                            <pre>getType() : string</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果该表单元素的类型为空，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setType"></a>
                        <div class="element clickable method public  method_setType inherited" data-toggle="collapse" data-target=".method_setType .collapse">
                            <h2>设置表单元素的类型</h2>
                            <pre>setType(string $value) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getName"></a>
                        <div class="element clickable method public  method_getName inherited" data-toggle="collapse" data-target=".method_getName .collapse">
                            <h2>获取表单元素的名称</h2>
                            <pre>getName(boolean $throwException = false) : string</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果该表单元素的类型为空并且需要抛出异常，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$throwException</h4>
                                                <code>boolean</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setName"></a>
                        <div class="element clickable method public  method_setName inherited" data-toggle="collapse" data-target=".method_setName .collapse">
                            <h2>设置表单元素的名称</h2>
                            <pre>setName(string $value) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getAttributes"></a>
                        <div class="element clickable method public  method_getAttributes inherited" data-toggle="collapse" data-target=".method_getAttributes .collapse">
                            <h2>获取所有的表单元素属性</h2>
                            <pre>getAttributes() : array</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getAttribute"></a>
                        <div class="element clickable method public  method_getAttribute inherited" data-toggle="collapse" data-target=".method_getAttribute .collapse">
                            <h2>获取一个表单元素属性</h2>
                            <pre>getAttribute(string $name, mixed $default = &#039;&#039;) : mixed</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$name</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$default</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setAttribute"></a>
                        <div class="element clickable method public  method_setAttribute inherited" data-toggle="collapse" data-target=".method_setAttribute .collapse">
                            <h2>设置一个表单元素属性</h2>
                            <pre>setAttribute(string $name, mixed $value) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$name</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>mixed</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_removeAttribute"></a>
                        <div class="element clickable method public  method_removeAttribute inherited" data-toggle="collapse" data-target=".method_removeAttribute .collapse">
                            <h2>删除一个表单元素属性</h2>
                            <pre>removeAttribute(string $name) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$name</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_hasAttribute"></a>
                        <div class="element clickable method public  method_hasAttribute inherited" data-toggle="collapse" data-target=".method_hasAttribute .collapse">
                            <h2>获取表单元素属性是否存在</h2>
                            <pre>hasAttribute(string $name) : boolean</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$name</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getClass"></a>
                        <div class="element clickable method public  method_getClass inherited" data-toggle="collapse" data-target=".method_getClass .collapse">
                            <h2>获取表单元素样式名</h2>
                            <pre>getClass() : string</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setClass"></a>
                        <div class="element clickable method public  method_setClass inherited" data-toggle="collapse" data-target=".method_setClass .collapse">
                            <h2>设置表单元素样式名</h2>
                            <pre>setClass(string $value) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getReadonly"></a>
                        <div class="element clickable method public  method_getReadonly inherited" data-toggle="collapse" data-target=".method_getReadonly .collapse">
                            <h2>获取表单元素是否只读</h2>
                            <pre>getReadonly() : boolean</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setReadonly"></a>
                        <div class="element clickable method public  method_setReadonly inherited" data-toggle="collapse" data-target=".method_setReadonly .collapse">
                            <h2>设置表单元素是否只读</h2>
                            <pre>setReadonly(boolean $value) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>boolean</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getDisabled"></a>
                        <div class="element clickable method public  method_getDisabled inherited" data-toggle="collapse" data-target=".method_getDisabled .collapse">
                            <h2>获取表单元素是否禁用</h2>
                            <pre>getDisabled() : boolean</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setDisabled"></a>
                        <div class="element clickable method public  method_setDisabled inherited" data-toggle="collapse" data-target=".method_setDisabled .collapse">
                            <h2>设置表单元素是否禁用</h2>
                            <pre>setDisabled(boolean $value) : \tfc\mvc\form\Element</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$value</h4>
                                                <code>boolean</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.form.Element.html">\tfc\mvc\form\Element</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getHtml"></a>
                        <div class="element clickable method public  method_getHtml inherited" data-toggle="collapse" data-target=".method_getHtml .collapse">
                            <h2>获取页面辅助类</h2>
                            <pre>getHtml() : \tfc\mvc\Html</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.Html.html">\tfc\mvc\Html</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method___toString"></a>
                        <div class="element clickable method public  method___toString inherited" data-toggle="collapse" data-target=".method___toString .collapse">
                            <h2>魔术方法：获取表单HTML内容</h2>
                            <pre>__toString() : string</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_display"></a>
                        <div class="element clickable method public  method_display inherited" data-toggle="collapse" data-target=".method_display .collapse">
                            <h2>输出表单HTML内容</h2>
                            <pre>display() : void</pre>
                            <div class="labels">
                                <span class="label">inherited</span>                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                    </div>
                            </div>
                        </div>
                    
                    
                                                                <h3><i class="icon-custom icon-property"></i> Properties</h3>
                                                    <a id="property_value"> </a>
                            <div class="element clickable property  public property_value inherited" data-toggle="collapse" data-target=".property_value .collapse">
                                <h2>表单元素的默认值</h2>
                                <pre>value : string</pre>
                                <div class="labels">
                                    <span class="label">inherited</span>                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>表单元素的默认值</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__type"> </a>
                            <div class="element clickable property  protected property__type inherited" data-toggle="collapse" data-target=".property__type .collapse">
                                <h2>表单元素的类型</h2>
                                <pre>_type : string</pre>
                                <div class="labels">
                                    <span class="label">inherited</span>                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>表单元素的类型</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__name"> </a>
                            <div class="element clickable property  protected property__name inherited" data-toggle="collapse" data-target=".property__name .collapse">
                                <h2>表单元素的名称</h2>
                                <pre>_name : string</pre>
                                <div class="labels">
                                    <span class="label">inherited</span>                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>表单元素的名称</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__attributes"> </a>
                            <div class="element clickable property  protected property__attributes inherited" data-toggle="collapse" data-target=".property__attributes .collapse">
                                <h2>寄存表单元素属性</h2>
                                <pre>_attributes : array</pre>
                                <div class="labels">
                                    <span class="label">inherited</span>                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>寄存表单元素属性</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>array</code>
                                                                            </div>
                                </div>
                            </div>
                                                            </div>
            </div>
            <a id="\tfc\mvc\form\ButtonElement"></a>
            <ul class="breadcrumb">
                <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
                    
    
    <li><span class="divider">\</span><a href="../namespaces/tfc.mvc.form.html">form</a></li>

                <li class="active"><span class="divider">\</span><a href="../classes/tfc.mvc.form.ButtonElement.html">ButtonElement</a></li>
            </ul>
        </div>
    </div>

    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:38 +0000.<br/>
    </footer>
    </body>
</html>
